package com.zp.base.admin.vo;

import com.zp.base.admin.common.annotation.AddGroup;
import com.zp.base.admin.common.annotation.UpdateGroup;
import com.zp.base.admin.entity.UserEntity;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author ZhangPeng
 * @email zhangpeng98@aliyun.com
 * @create 2021-03-05 11:51
 */
@Data
public class UserVo extends UserEntity {

    @NotEmpty(message = "用户必须至少选择一个所属角色！", groups = {AddGroup.class, UpdateGroup.class})
    private List<Long> roleId;
}
